package com.djl.sqtg.service;

import com.djl.sqtg.entity.Colonel;
import com.djl.sqtg.entity.ColonelOrder;
import com.djl.sqtg.entity.TzMonthData;
import com.djl.sqtg.entity.User;

import java.util.List;

public interface IColonelService {
//    Integer login(String username,String avatar);
    Integer register(Colonel colonel);
    Colonel login(String account,String password);
    Integer getState(String account,String password);
    Colonel findColonelByTelep(String telep);
    List<Colonel> getApplicationColonel();
    Integer getAllColonelNum(Integer state);
    Integer getColonelBySearchNum(Integer stateSelect,String dateSelect,String username, String telep,Integer state);

    List<Colonel>  getColonelByPageNum(Integer pageNum, Integer pageSize,Integer state);
    List<Colonel>  getColonelBySearch(Integer stateSelect,String dateSelect,String username, String telep,Integer pageNum, Integer pageSize,Integer state);
    Integer updateApplicationState(Integer cid,Integer state);
    Integer updateRoyalty(Integer cid,Integer royalty);
    Float getMonthTurnover(String dateSelect,Integer tzid);
    List<TzMonthData> getColonelIdRoyalty();
    Integer addTzMonthData(TzMonthData tzMonthData);
    Integer getTzMonthDataByTzidMonth(Integer tzid,String yearmonth);
    List<TzMonthData> getTzMonthData(Integer tzid);
    List<TzMonthData> getTzMonthDataByDate(Integer tzid,String dateSelect);
    Integer colonelNum();
    Integer getAuditColonelNum();
    Float colonelMoney();
    Integer colonelNewNum(String date);
    List<ColonelOrder>  getColonelOrderNumRank(String date);
    List<ColonelOrder>  getColonelOrderMoneyRank(String date);
    List<ColonelOrder>  getTMColonelOrderNumRank(String[] date);
    List<ColonelOrder>  getTMColonelOrderMoneyRank(String[] date);
    Integer colonelNewNumTimePeriod(String startDate,String endDate);
    List<ColonelOrder>  getColonelOrderNumRankTimePeriod(String startDate,String endDate);
    List<ColonelOrder>  getColonelOrderMoneyRankTimePeriod(String startDate,String endDate);
    Integer updateColonel(Colonel colonel);
    List<User> getUserByTzid(Integer tzid);


    Integer getColonelOrderNum(Integer tzid,String date);
    Float getColonelOrderMoney(Integer tzid,String date);

    Integer getColonelAllOrderNum(Integer tzid);
    Float getColonelOrderAllMoney(Integer tzid);
    Integer getRoyalty(Integer tzid);
    Integer getAllUserColonel(Integer tzid);
    Integer getMonNewUserColonel(Integer tzid);
    List consumeUserNum(Integer tzid);
    //    团长收益
    Float getColonelMoney(Integer tzid);
    Integer updateColonelMoney(Integer tzid,Float money);
}
